<?php 

require_once 'system/autoload.php';


$extractor = new SiteMap_Extractor();

//$resourceurl = 'skidki-ua.com';
//$resourceurl = 'durex.net.ua';
//$resourceurl = 'test1.orange1.in';
//$resourceurl = 'merry.maple.org.ua';
//$resourceurl = 'ru.wikipedia.org';
$resourceurl = 'www.tabletochki.com';

$result = $extractor->getSiteMap ("http://".$resourceurl."/");

echo "Total: ", $extractor->count_page, "\n";

file_put_contents($resourceurl.".log", var_export($result, true));

?>